// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   SourceFile

package com.sgame.android.data;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;

public class UserData
    implements Parcelable
{

    public UserData()
    {
        mUid = "";
        mUserName = "";
        mName = "";
        mEmail = "";
        mPicture = "";
    }

    public String getUid()
    {
        return mUid;
    }

    public void setUid(String uid)
    {
        mUid = uid;
    }

    public String getUsername()
    {
        return mUserName;
    }

    public void setUsername(String username)
    {
        mUserName = username;
    }

    public String getName()
    {
        return mName;
    }

    public void setName(String name)
    {
        mName = name;
    }

    public String getEmail()
    {
        return mEmail;
    }

    public void setEmail(String email)
    {
        mEmail = email;
    }

    public String getPicture()
    {
        return mPicture;
    }

    public void setPicture(String picture)
    {
        mPicture = picture;
    }

    public int describeContents()
    {
        return 0;
    }

    public void writeToParcel(Parcel dest, int i)
    {
        dest.writeString(mUid);
        dest.writeString(mUserName);
        dest.writeString(mName);
        dest.writeString(mEmail);
        dest.writeString(mPicture);
    }

    private UserData(Parcel in)
    {
        mUid = "";
        mUserName = "";
        mName = "";
        mEmail = "";
        mPicture = "";
        mUid = in.readString();
        mUserName = in.readString();
        mName = in.readString();
        mEmail = in.readString();
        mPicture = in.readString();
    }

    public String toString()
    {
        return (new StringBuilder("{uid:")).append(mUid).append(", username:").append(mUserName).append(", name:").append(mName).append(", email:").append(mEmail).append(", picture:").append(mPicture).append("}").toString();
    }

    public List<String> getDataStringArray()
    {
        ArrayList<String> arraylist = new ArrayList<String>();
        if(mUid.length() != 0)
        {
            arraylist.add("id");
            arraylist.add(mUid);
        }
        if(mName.length() != 0)
        {
            arraylist.add("fullname");
            arraylist.add(mName);
        }
        if(mUserName.length() != 0)
        {
            arraylist.add("gamertag");
            arraylist.add(mUserName);
        }
        if(mPicture.length() != 0)
        {
            arraylist.add("photo_url");
            arraylist.add(mPicture);
        }
        if(mEmail.length() != 0)
        {
            arraylist.add("email");
            arraylist.add(mEmail);
        }
        return arraylist;
    }

    UserData(Parcel x0, byte byte0)
    {
        this(x0);
    }

    private String mUid;
    private String mUserName;
    private String mName;
    private String mEmail;
    private String mPicture;
    public static final android.os.Parcelable.Creator<Object> CREATOR = new android.os.Parcelable.Creator<Object>() {

        public final Object[] newArray(int i)
        {
            return new UserData[i];
        }

        public final Object createFromParcel(Parcel parcel)
        {
            return new UserData(parcel, (byte)0);
        }

    }
;

}
